import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'reset-css'
import './utils/http'
import './utils/premission'
import * as plugins from './utils/plugins'
import { setDomFontSize } from "./utils/setRem";
import echarts from 'echarts'

import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/css/element.scss'

Vue.prototype.$echarts = echarts

Vue.use(ElementUI)

// 自适应
setDomFontSize()

// 挂载自定义工具函数
Object.keys(plugins).forEach( key => {
  Vue.prototype['G' + key] = plugins[key]
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
